package lab02.test16;

import java.util.Scanner;

public class Test{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入a的值：");
        double a = sc.nextDouble();
        System.out.println("请输入b的值：");
        double b = sc.nextDouble();

        Add add = new Add();
        Subtraction sub = new Subtraction();
        Multiplication mul = new Multiplication();
        Division di = new Division();

        System.out.println("加法："+add.arithemtic(a,b));
        System.out.println("减法："+sub.arithemtic(a,b));
        System.out.println("乘法："+mul.arithemtic(a,b));
        System.out.println("除法："+di.arithemtic(a,b));

    }
}
